﻿@model IEnumerable<Pyramid.Models.PayeeRecord>

@{
	var groups = Model.ToList().GroupBy(x => x.Project).ToList();
}
<div class="pageContent">
	<table class="table" width="100%" layouth="24">
		<thead>
			<tr>
				<th>@Html.DisplayNameFor(m=>m.Amount)</th>
				<th>@Html.DisplayNameFor(m=>m.PayerType)</th>
				<th>@Html.DisplayNameFor(m=>m.PayerName)</th>
				<th>@Html.DisplayNameFor(m=>m.FinanceAccountId)</th>
				<th>@Html.DisplayNameFor(m=>m.ApplyTime)</th>
				<th>@Html.DisplayNameFor(m=>m.Verify.VerifyUserId)</th>
				<th>@Html.DisplayNameFor(m=>m.Verify.VerifyTime)</th>
				<th>@Html.DisplayNameFor(m=>m.Verify.VerifyRemark)</th>
			</tr>
		</thead>
		<tbody>
			<tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr>
			@foreach (var g in groups)
			{
				<tr><td colspan="8"><strong>收款项目类型：@g.Key.Name</strong> </td></tr>
				foreach (var item in g)
				{
					<tr>
						<td>@item.Amount.ToString("C")</td>
						<td>@item.PayerTypeString</td>
						<td>@item.PayerName</td>
						<td>@item.FinanceAccount.Account</td>
						<td>@item.ApplyTime.ToString("yyyy-MM-dd")</td>
						<td>@item.Verify.VerifyUserId</td>
						<td>@item.Verify.VerifyTime.ToString("yyyy-MM-dd")</td>
						<td>@item.Verify.VerifyRemark</td>
					</tr>
				}
			}
		</tbody>
	</table>
</div>
